package com.atguigu.gmall.web.controller;

import com.atguigu.gmall.common.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;


@RestController
@Slf4j
public class TestController {

    @GetMapping(value = "/order/saveOrder")
    public Result saveOrder(@RequestHeader(value = "userId") String userId) {
        log.info("saveorder.................{}" , userId);
        return Result.ok() ;
    }

    @GetMapping(value = "/cart/getBySkuId")
    public Result getBySkuId(@RequestHeader(value = "userId" , required = false)String userId ,
                             @RequestHeader(value = "userTempId" , required = false)String userTempId) {
        log.info("saveorder..........userId: {} , userTempId: {}" , userId , userTempId);
        return Result.ok() ;
    }

}
